<?php

/**
 * Test: Image factories.
 *
 * @author     David Grudl
 * @category   Nette
 * @package    Nette
 * @subpackage UnitTests
 */



require dirname(__FILE__) . '/../initialize.php';



$image = Image::fromFile('images/logo.gif');
T::note("logo.gif");
T::dump( $image->width, 'width' );
T::dump( $image->height, 'height' );

$image = Image::fromBlank(200, 300, Image::rgb(255, 128, 0));
T::note("blank");
T::dump( $image->width, 'width' );
T::dump( $image->height, 'height' );



__halt_compiler() ?>

------EXPECT------
logo.gif

width: int(176)

height: int(104)

blank

width: int(200)

height: int(300)
